package com.jsh.erp.feign;

import com.jsh.erp.datasource.entities.DepotHead;
import org.apache.ibatis.annotations.Param;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;
import java.util.List;

@FeignClient(name = "jsh-system",path = "/jshERP-boot/remote/api/depotHead",contextId = "DepotHeadRemoteClient")
public interface DepotHeadRemoteClient {

    @GetMapping("/getAccountSum")
    BigDecimal getAccountSum(@RequestParam("id")Long id,
                             @RequestParam("timeStr") String timeStr,
                             @RequestParam("type")String type);

    @GetMapping("/getManyAccountSum")
     BigDecimal getManyAccountSum(@RequestParam("id")Long id,
                                  @RequestParam("timeStr") String timeStr,
                                  @RequestParam("type")String type)throws Exception;
    @GetMapping("/getDepotHeadListByAccountIds")
    List<DepotHead> getDepotHeadListByAccountIds(@RequestParam("accountIds") String[] accountIds);

    @GetMapping("/getDepotHead")
     DepotHead getDepotHead(@RequestParam("number")String number)throws Exception;
}
